package lab02.Test11;

/**
 * Created by 卡01 on 2017/10/25.
 */
public class Rectangle  implements Printx{
    double side1,side2;
    double primeter(){
        return ((side1+side2)*2);
    }

    double area(){
        return (side1*side2);
    }
    @Override
    public void printMyWay() {
        System.out.println("长");
        System.out.println(side1);
        System.out.println("宽");
        System.out.println(side2);
        System.out.println("周长");
        System.out.println((side1+side2)*2);
        System.out.println("面积");
        System.out.println(side1*side2);
    }
}